import request from "../utils/request.js"

export function Login(data){
	return request({
		url:"/demo/app/login",
		method: "post",
		data
	})
}

export function getPersonageInfo(data){
	return request({
		url:"/demo/app/getPersonageInfo",
		method: "post",
		data
	})
}

export function getInfo(data){
	return request({
		url:"/demo/app/userInfo",
		method: "post",
		data
	})
}

export function register(data){
	return request({
		url:"/demo/app/register",
		method: "post",
		data
	})
}

export function getCode(params){
	return request({
		url:`/captchaSms?phone=${params}`,
		method: "get"
	})
}

export function Withdrawal(data){
	return request({
		url:`/demo/app/pay/Withdrawal`,
		method: "post",
		data
	})
}

export function getList(data){
	return request({
		url:`/demo/app/friendList`,
		method: "post",
		data
	})
}

export function updateUserInfo(data){
	return request({
		url:`/demo/app/updateUserInfo`,
		method: "post",
		data
	})
}

export function userUpdatePhone(data){
	return request({
		url:`/demo/app/userUpdatePhone`,
		method: "post",
		data
	})
}

export function setAutonym(data){
	return request({
		url:`/demo/app/setAutonym`,
		method: "post",
		data
	})
}

export function Upload(data){
	return request({
		url:`/demo/app/oss/upload`,
		method: "post",
		data
	})
}

export function Update(params){
	return request({
		url:`/demo/app/check?version=${params}`,
		method: "get"
	})
}